#ifndef SOUND_COMMAND_H
#define SOUND_COMMAND_H

#include "cocos2d.h"
#include "../../util/include/util.h"

USING_NS_CC;

enum SoundRepository {
    EF_CORRECT = 1,
    EF_NO_HIGHSCORE = 2,
    EF_INCREASE_SPEED = 3,
    EF_HIGHSOCRE = 4,
    EF_BUTTON = 5,
    BG_MUSIC_MENU = 100,
    BG_MUSIC_PLAY = 101
};

enum SoundCommandType {
    StartCmd = 1,
    StopCmd = 2,
    PauseCmd = 3,
    ResumeCmd = 4
};

enum SoundType {
    BackGroundMusic = 1,
    EffectSound = 2,
    AllEffects = 3,
    AllSounds = 4,
};

class SoundCommand: public Ref {
    UG_PROPERTY_FULL(int, soundId, SoundId);
    UG_PROPERTY_FULL_BOOL(loop, Loop);
    UG_PROPERTY_FULL(float, fadeTime, FadeTime);
    UG_PROPERTY_FULL(int, soundType, SoundType);
	UG_PROPERTY_FULL(int, cmdType, CmdType);
    UG_PROPERTY_FULL(float, timeout, Timeout);
public:
	SoundCommand();
	virtual ~SoundCommand();
    virtual bool init();
    CREATE_FUNC(SoundCommand);
};
#endif
